#!/bin/bash

## @Version	1.0
## @Author	Fabio Grucci (alias Phoenix)
## @License	LGPL

## EXTERNAL DECLARED VARIABLE - PRECONDITIONS OF ALL FUNCTIONS
#HELP			- a string declared externally and contains help message
#HELP_OPTIONS	- an array declared externally and contains all the help options

if [ $1 = "?" -o $1 = "-?" -o $1 = "/?" -o $1 = "help" -o $1 = "-help" -o $1 = "--help" ] # Se richiede aiuto
then		# elenco il funzionamento
	echo -e $HELP;
	exit 0;
fi;


function checkHelp() {
	. ./arrays.sh
	parametersToArray "$@"; #return in PARAMETERS VAR
	parameters_array_length=${#PARAMETERS[*]};
	for (( i=0; i<parameters_array_length; i++ )); do
		declare PARAMETER="${PARAMETERS[i]}";
		if [ "$PARAMETES" ] 
		mount_point="${PARAMETERS[i+1]}";
	done;
}

##Function that print Help on Standard Output
function printHelp() {
	echo -e $HELP;
}

#OPTION_ARGS array the all possible option excluded help option